<template>
  <BlogCategory :menu="category" class="categoryMenu"></BlogCategory>
</template>

<script>
  import { blogCategoryQuery } from '@/api/blog'
  import BlogCategory from './BlogCategory'

  export default {
    name: 'BlogMainHeader',
    data: function() {
      return {
        current: [],
        category: {}
      }
    },
    components: { BlogCategory },
    created() {
      blogCategoryQuery().then((res) => {
        this.category = res.data
      })
    },
    methods: {}
  }
</script>

<style scoped>
  .categoryMenu >>> .ant-menu-item, .ant-menu-submenu-title {
    padding: 0 12px;
  }

  /*底部边框线*/
  .categoryMenu >>> .ant-menu-horizontal {
    padding-top: 4px;
    border-bottom: none;
    font-size: 18px;
    font-weight: bold;
  }

  /*底部激活横线*/
  .categoryMenu >>> ul > li:hover {
    border-bottom: 2px solid #000000;
    color: black;
  }

  .categoryMenu >>> .ant-menu-item:hover {
    border-bottom: 2px solid #000000;
    color: black;
  }

  .categoryMenu >>> .ant-menu-item:hover {
    border-bottom: 2px solid #000000;
    color: black;
  }

  .categoryMenu >>> .ant-menu-submenu-title:hover {
    color: black;
  }

  .categoryMenu >>> .ant-menu-item.ant-menu-item-selected {
    border-bottom: 2px solid #000000;
    color: black;
  }

  .categoryMenu >>> .ant-menu-submenu.ant-menu-submenu-horizontal.ant-menu-submenu-selected {
    border-bottom: 2px solid #000000;
    color: black;
  }

  .categoryMenu >>> .ant-menu-submenu.ant-menu-submenu-horizontal.ant-menu-submenu-active {
    border-bottom: 2px solid #000000;
    color: black;
  }

  /*布标大小*/
  .categoryMenu >>> .anticon {
    font-size: 24px;
  }
</style>
